﻿using Abp.AutoMapper;
using Abp.Organizations;
using System.ComponentModel.DataAnnotations;

namespace AbpProjectTemplate.Application.OrganizationUnits.Dtos
{
    [AutoMapTo(typeof(OrganizationUnit))]
    public class OrganizationUnitCreateDto
    {
        //
        // 摘要:
        //     Parent Abp.Organizations.OrganizationUnit Id. Null, if this OU is root.
        public long? ParentId { get; set; }
        //
        // 摘要:
        //     Display name of this role.
        [Required]
        [StringLength(OrganizationUnit.MaxDisplayNameLength)]
        public string DisplayName { get; set; }
    }
}
